package com.pig4cloud.pig.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pig4cloud.pig.admin.api.entity.MetaEntityEntity;
import com.pig4cloud.pig.admin.entity.vo.FlowFieldVO;
import com.pig4cloud.pig.common.core.util.R;
import com.pig4cloud.pig.common.mybatis.base.Group;
import jakarta.validation.Valid;

import java.util.List;
import java.util.Map;

public interface MetaEntityService extends IService<MetaEntityEntity> {

	R<Boolean> saveMetaEntityEntity(@Valid MetaEntityEntity metaEntity);

	R<Boolean> removeMetaEntity(Long[] ids);

	R<Boolean> saveShowField(String id, List<String> metaFieldEntityList);

	R<Boolean> saveCondition(String id, Group groupConditions);

	R<Boolean> saveFormJson(String id, List<Map<String, Object>> formJson);

    R<List<FlowFieldVO>> getFlowFieldById(String id);
}
